
#ifndef CLASSMATEWIDGET_H
#define CLASSMATEWIDGET_H

#include <BSpacer>
#include <BLineEdit>
#include <BComboBox>
#include <BSpinBox>
#include <BFloatSpinBox>
#include <BDoubleSpinBox>
#include <BButtonGroup>

#include "ClassMate.h"

class ClassMateWidget : public BWidget
{
	BOBJECT(ClassMateWidget);
public:
	ClassMateWidget(BWidget* parent = 0);
	~ClassMateWidget();

protected:
	void slotAssetChanged(BObject* sender, const BValue& value);
	void slotPropetyChanged(BObject* sender, const BValue& value);
	void slotageEditFinished();
	void slotWeightEditFinished();
	void slotscoreEditFinished();
	void slotNativeLineEditClicked();
	void slotButtonGroupChecked(BButtonGroup* buttonGroup, const BValue& value);

protected:
	virtual void paintEvent(const BEvent& event);

private:
	BSpacer*		_imageSpacer;
	BLineEdit*		_nameEdit;
	BComboBox*		_genderComboBox;
	BSpinBox*		_ageSpinBox;
	BFloatSpinBox*	_weightSpinBox;
	BDoubleSpinBox* _scoreSpinBox;
	BLineEdit*		_nativeLineEdit;
	BWidget*		_nativeWidget;

};

#endif
